package logic.bean;


import org.greenrobot.greendao.annotation.Transient;

import java.io.Serializable;
import java.util.List;

/**
 * Created by lexy on 2016/10/12.
 */
public class AreaBean implements Serializable {

    /**
     * areaList : [{"areaId":0,"areaName":"","cityId":0,"cityName":"","companyId":0,"companyName":"","dataType":1,"isDelete":"n","list":[{"areaId":0,"areaName":"","cityId":52,"cityName":"北京","companyId":0,"companyName":"","dataType":2,"isDelete":"n","list":[{"areaId":500,"areaName":"东城区","cityId":52,"cityName":"","companyId":0,"companyName":"","dataType":3,"isDelete":"n","list":[{"areaId":500,"areaName":"","cityId":52,"cityName":"","companyId":1,"companyName":"北京东城公司","dataType":0,"isDelete":"n","list":null,"nextDataType":0,"provinceId":2,"provinceName":""}],"nextDataType":4,"provinceId":2,"provinceName":""},{"areaId":501,"areaName":"西城区","cityId":52,"cityName":"","companyId":0,"companyName":"","dataType":3,"isDelete":"n","list":[{"areaId":501,"areaName":"","cityId":52,"cityName":"","companyId":2,"companyName":"北京西城公司","dataType":0,"isDelete":"n","list":null,"nextDataType":0,"provinceId":2,"provinceName":""}],"nextDataType":4,"provinceId":2,"provinceName":""}],"nextDataType":3,"provinceId":2,"provinceName":""}],"nextDataType":2,"provinceId":2,"provinceName":"北京"},{"areaId":0,"areaName":"","cityId":0,"cityName":"","companyId":0,"companyName":"","dataType":1,"isDelete":"n","list":[{"areaId":0,"areaName":"","cityId":383,"cityName":"杭州","companyId":0,"companyName":"","dataType":2,"isDelete":"n","list":[{"areaId":3229,"areaName":"西湖区","cityId":383,"cityName":"","companyId":0,"companyName":"","dataType":3,"isDelete":"n","list":[{"areaId":3229,"areaName":"","cityId":383,"cityName":"","companyId":1,"companyName":"北京东城公司","dataType":0,"isDelete":"n","list":null,"nextDataType":0,"provinceId":31,"provinceName":""}],"nextDataType":4,"provinceId":31,"provinceName":""}],"nextDataType":3,"provinceId":31,"provinceName":""},{"areaId":0,"areaName":"","cityId":384,"cityName":"湖州","companyId":0,"companyName":"","dataType":2,"isDelete":"n","list":[{"areaId":3243,"areaName":"吴兴区","cityId":384,"cityName":"","companyId":0,"companyName":"","dataType":3,"isDelete":"n","list":[{"areaId":3243,"areaName":"","cityId":384,"cityName":"","companyId":1,"companyName":"北京东城公司","dataType":0,"isDelete":"n","list":null,"nextDataType":0,"provinceId":31,"provinceName":""}],"nextDataType":4,"provinceId":31,"provinceName":""}],"nextDataType":3,"provinceId":31,"provinceName":""}],"nextDataType":2,"provinceId":31,"provinceName":"浙江"}]
     * lastTimeStamp : 1476242927620
     */

    private long lastTimeStamp;
    /**
     * areaId : 0
     * areaName :
     * cityId : 0
     * cityName :
     * companyId : 0
     * companyName :
     * dataType : 1
     * isDelete : n
     * list : [{"areaId":0,"areaName":"","cityId":52,"cityName":"北京","companyId":0,"companyName":"","dataType":2,"isDelete":"n","list":[{"areaId":500,"areaName":"东城区","cityId":52,"cityName":"","companyId":0,"companyName":"","dataType":3,"isDelete":"n","list":[{"areaId":500,"areaName":"","cityId":52,"cityName":"","companyId":1,"companyName":"北京东城公司","dataType":0,"isDelete":"n","list":null,"nextDataType":0,"provinceId":2,"provinceName":""}],"nextDataType":4,"provinceId":2,"provinceName":""},{"areaId":501,"areaName":"西城区","cityId":52,"cityName":"","companyId":0,"companyName":"","dataType":3,"isDelete":"n","list":[{"areaId":501,"areaName":"","cityId":52,"cityName":"","companyId":2,"companyName":"北京西城公司","dataType":0,"isDelete":"n","list":null,"nextDataType":0,"provinceId":2,"provinceName":""}],"nextDataType":4,"provinceId":2,"provinceName":""}],"nextDataType":3,"provinceId":2,"provinceName":""}]
     * nextDataType : 2
     * provinceId : 2
     * provinceName : 北京
     */

    private List<ProvinceBean> areaList;

    public long getLastTimeStamp() {
        return lastTimeStamp;
    }

    public void setLastTimeStamp(long lastTimeStamp) {
        this.lastTimeStamp = lastTimeStamp;
    }

    public List<ProvinceBean> getAreaList() {
        return areaList;
    }

    public void setAreaList(List<ProvinceBean> areaList) {
        this.areaList = areaList;
    }

    public static class ProvinceBean extends AreaBeanModle {
        @Transient
        private List<CityBean> list;
        /**
         * areaId : 0
         * areaName :
         * cityId : 52
         * cityName : 北京
         * companyId : 0
         * companyName :
         * dataType : 2
         * isDelete : n
         * list : [{"areaId":500,"areaName":"东城区","cityId":52,"cityName":"","companyId":0,"companyName":"","dataType":3,"isDelete":"n","list":[{"areaId":500,"areaName":"","cityId":52,"cityName":"","companyId":1,"companyName":"北京东城公司","dataType":0,"isDelete":"n","list":null,"nextDataType":0,"provinceId":2,"provinceName":""}],"nextDataType":4,"provinceId":2,"provinceName":""},{"areaId":501,"areaName":"西城区","cityId":52,"cityName":"","companyId":0,"companyName":"","dataType":3,"isDelete":"n","list":[{"areaId":501,"areaName":"","cityId":52,"cityName":"","companyId":2,"companyName":"北京西城公司","dataType":0,"isDelete":"n","list":null,"nextDataType":0,"provinceId":2,"provinceName":""}],"nextDataType":4,"provinceId":2,"provinceName":""}]
         * nextDataType : 3
         * provinceId : 2
         * provinceName :
         */

        public int getAreaId() {
            return areaId;
        }

        public void setAreaId(int areaId) {
            this.areaId = areaId;
        }

        public String getAreaName() {
            return areaName;
        }

        public void setAreaName(String areaName) {
            this.areaName = areaName;
        }

        public int getCityId() {
            return cityId;
        }

        public void setCityId(int cityId) {
            this.cityId = cityId;
        }

        public String getCityName() {
            return cityName;
        }

        public void setCityName(String cityName) {
            this.cityName = cityName;
        }

        public int getCompanyId() {
            return companyId;
        }

        public void setCompanyId(int companyId) {
            this.companyId = companyId;
        }

        public String getCompanyName() {
            return companyName;
        }

        public void setCompanyName(String companyName) {
            this.companyName = companyName;
        }

        public int getDataType() {
            return dataType;
        }

        public void setDataType(int dataType) {
            this.dataType = dataType;
        }

        public String getIsDelete() {
            return isDelete;
        }

        public void setIsDelete(String isDelete) {
            this.isDelete = isDelete;
        }

        public int getNextDataType() {
            return nextDataType;
        }

        public void setNextDataType(int nextDataType) {
            this.nextDataType = nextDataType;
        }

        public int getProvinceId() {
            return provinceId;
        }

        public void setProvinceId(int provinceId) {
            this.provinceId = provinceId;
        }

        public String getProvinceName() {
            return provinceName;
        }

        public void setProvinceName(String provinceName) {
            this.provinceName = provinceName;
        }

        public List<CityBean> getList() {
            return list;
        }

        public void setList(List<CityBean> list) {
            this.list = list;
        }

        public static class CityBean extends AreaBeanModle implements Serializable {
            @Transient
            private List<DistrictBean> list;
            /**
             * areaId : 500
             * areaName : 东城区
             * cityId : 52
             * cityName :
             * companyId : 0
             * companyName :
             * dataType : 3
             * isDelete : n
             * list : [{"areaId":500,"areaName":"","cityId":52,"cityName":"","companyId":1,"companyName":"北京东城公司","dataType":0,"isDelete":"n","list":null,"nextDataType":0,"provinceId":2,"provinceName":""}]
             * nextDataType : 4
             * provinceId : 2
             * provinceName :
             */

            public int getAreaId() {
                return areaId;
            }

            public void setAreaId(int areaId) {
                this.areaId = areaId;
            }

            public String getAreaName() {
                return areaName;
            }

            public void setAreaName(String areaName) {
                this.areaName = areaName;
            }

            public int getCityId() {
                return cityId;
            }

            public void setCityId(int cityId) {
                this.cityId = cityId;
            }

            public String getCityName() {
                return cityName;
            }

            public void setCityName(String cityName) {
                this.cityName = cityName;
            }

            public int getCompanyId() {
                return companyId;
            }

            public void setCompanyId(int companyId) {
                this.companyId = companyId;
            }

            public String getCompanyName() {
                return companyName;
            }

            public void setCompanyName(String companyName) {
                this.companyName = companyName;
            }

            public int getDataType() {
                return dataType;
            }

            public void setDataType(int dataType) {
                this.dataType = dataType;
            }

            public String getIsDelete() {
                return isDelete;
            }

            public void setIsDelete(String isDelete) {
                this.isDelete = isDelete;
            }

            public int getNextDataType() {
                return nextDataType;
            }

            public void setNextDataType(int nextDataType) {
                this.nextDataType = nextDataType;
            }

            public int getProvinceId() {
                return provinceId;
            }

            public void setProvinceId(int provinceId) {
                this.provinceId = provinceId;
            }

            public String getProvinceName() {
                return provinceName;
            }

            public void setProvinceName(String provinceName) {
                this.provinceName = provinceName;
            }

            public List<DistrictBean> getList() {
                return list;
            }

            public void setList(List<DistrictBean> list) {
                this.list = list;
            }

            public static class DistrictBean extends AreaBeanModle {
                @Transient
                private List<CompBean> list;
                /**
                 * areaId : 500
                 * areaName :
                 * cityId : 52
                 * cityName :
                 * companyId : 1
                 * companyName : 北京东城公司
                 * dataType : 0
                 * isDelete : n
                 * list : null
                 * nextDataType : 0
                 * provinceId : 2
                 * provinceName :
                 */

                public int getAreaId() {
                    return areaId;
                }

                public void setAreaId(int areaId) {
                    this.areaId = areaId;
                }

                public String getAreaName() {
                    return areaName;
                }

                public void setAreaName(String areaName) {
                    this.areaName = areaName;
                }

                public int getCityId() {
                    return cityId;
                }

                public void setCityId(int cityId) {
                    this.cityId = cityId;
                }

                public String getCityName() {
                    return cityName;
                }

                public void setCityName(String cityName) {
                    this.cityName = cityName;
                }

                public int getCompanyId() {
                    return companyId;
                }

                public void setCompanyId(int companyId) {
                    this.companyId = companyId;
                }

                public String getCompanyName() {
                    return companyName;
                }

                public void setCompanyName(String companyName) {
                    this.companyName = companyName;
                }

                public int getDataType() {
                    return dataType;
                }

                public void setDataType(int dataType) {
                    this.dataType = dataType;
                }

                public String getIsDelete() {
                    return isDelete;
                }

                public void setIsDelete(String isDelete) {
                    this.isDelete = isDelete;
                }

                public int getNextDataType() {
                    return nextDataType;
                }

                public void setNextDataType(int nextDataType) {
                    this.nextDataType = nextDataType;
                }

                public int getProvinceId() {
                    return provinceId;
                }

                public void setProvinceId(int provinceId) {
                    this.provinceId = provinceId;
                }

                public String getProvinceName() {
                    return provinceName;
                }

                public void setProvinceName(String provinceName) {
                    this.provinceName = provinceName;
                }

                public List<CompBean> getList() {
                    return list;
                }

                public void setList(List<CompBean> list) {
                    this.list = list;
                }

                public static class CompBean extends AreaBeanModle {
                    @Transient
                    private Object list;
                    public int getAreaId() {
                        return areaId;
                    }

                    public void setAreaId(int areaId) {
                        this.areaId = areaId;
                    }

                    public String getAreaName() {
                        return areaName;
                    }

                    public void setAreaName(String areaName) {
                        this.areaName = areaName;
                    }

                    public int getCityId() {
                        return cityId;
                    }

                    public void setCityId(int cityId) {
                        this.cityId = cityId;
                    }

                    public String getCityName() {
                        return cityName;
                    }

                    public void setCityName(String cityName) {
                        this.cityName = cityName;
                    }

                    public int getCompanyId() {
                        return companyId;
                    }

                    public void setCompanyId(int companyId) {
                        this.companyId = companyId;
                    }

                    public String getCompanyName() {
                        return companyName;
                    }

                    public void setCompanyName(String companyName) {
                        this.companyName = companyName;
                    }

                    public int getDataType() {
                        return dataType;
                    }

                    public void setDataType(int dataType) {
                        this.dataType = dataType;
                    }

                    public String getIsDelete() {
                        return isDelete;
                    }

                    public void setIsDelete(String isDelete) {
                        this.isDelete = isDelete;
                    }

                    public Object getList() {
                        return list;
                    }

                    public void setList(Object list) {
                        this.list = list;
                    }

                    public int getNextDataType() {
                        return nextDataType;
                    }

                    public void setNextDataType(int nextDataType) {
                        this.nextDataType = nextDataType;
                    }

                    public int getProvinceId() {
                        return provinceId;
                    }

                    public void setProvinceId(int provinceId) {
                        this.provinceId = provinceId;
                    }

                    public String getProvinceName() {
                        return provinceName;
                    }

                    public void setProvinceName(String provinceName) {
                        this.provinceName = provinceName;
                    }
                }
            }
        }
    }
}
